package com.ngc.mall.domain;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ngc.mall.common.configure.mybatisPlus.BaseDomain;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 *
 * 消息接收domain
 * @author: chenxiaolin
 * @date 2023/11/8 14:54
**/
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("message_record")
public class MessageRecordDomain extends BaseDomain {
    private Long receiveId;

    private LocalDateTime readTime;

    /**
     * 状态 0未读 1已读 2删除
     */
    private Integer status;

    private Long messageId;

    @TableLogic
    private Boolean deleted;
}
